//
//  OrderHelper.swift
//  Employee
//
//  Created by swordjoy on 2017/5/9.
//  Copyright © 2017年 remotevillage. All rights reserved.
//

import Foundation

struct OrderHelper {
  
  static func getType(order: WorkOrder) -> OrderDetailType {
    
    if "ACCEPTED" == order.status { return .accepted }
    else if "UNTREATED" == order.status { return .untreated }
      //    else if "FINISHED" == order.status {
    else { return .finish }
    
  }
  
    static func getType(status: String) -> OrderDetailType {
        
        if "ACCEPTED" == status { return .accepted }
        else if "UNTREATED" == status { return .untreated }
            //    else if "FINISHED" == status {
        else { return .finish }
        
    }
    
}
